package com.ffyc.cemp.tools;

import cn.hutool.bloomfilter.BitMapBloomFilter;
import cn.hutool.core.lang.hash.Hash;
import com.auth0.jwt.JWT;
import com.auth0.jwt.interfaces.Claim;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) {
        Map<String,Object> map = new HashMap<>();
        map.put("username","admin");
        map.put("role","1");
        String token = JwtUtils.getInstance().build(map, 30, "123");
        Map<String, Object> mapx = JwtUtils.getInstance().verify("123", token);
        System.out.println(mapx);



    }
}
